/**
 * 用户搜索参数
 */
import { ref } from 'vue'
import { FormItemProps } from '../../../components/base/form-item/props/index'
import { user } from '../../../entity/system/user'
export const search = ref<Array<FormItemProps<user>>>([
  {
    type: 'input',
    name: 'name',
    placeholder: '请输入用户名',
    label: '用户名',
  },
  {
    type: 'input',
    name: 'nickName',
    placeholder: '请输入昵称',
    label: '昵称',
  },
  {
    type: 'select',
    name: 'deptId',
    placeholder: '请选择机构',
    label: '机构名',
    params: {
      options: [],
      fieldNames: { label: 'name', value: 'id' },
      allowClear: true,
    },
  },
  {
    type: 'input',
    name: 'email',
    placeholder: '请输入邮箱',
    label: '邮箱',
  },
  {
    type: 'input',
    name: 'mobile',
    placeholder: '请输入手机号',
    label: '手机号',
  },
  {
    type: 'select',
    name: 'status',
    placeholder: '请选择状态',
    label: '状态',
    params: {
      options: [
        {
          label: '禁用 ',
          value: '0',
        },
        {
          label: '正常',
          value: '1',
        },
      ],
    },
  },
  {
    type: 'select',
    name: 'userType',
    label: '类型',
    placeholder: '类型',
    params: {
      options: [
        {
          label: '普通用户',
          value: 0,
        },
        {
          label: '管理员',
          value: 1,
        },
      ],
    },
  },
])
